import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from "axios";
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css'
import vuex from "vuex";
import store from './store';
import ImagePreview from "@/components/ImagePreview/index.vue";
import {parseTime} from "@/utils/ruoyi";
import {download} from "@/utils/request";
import RightToolbar from "@/components/RightToolbar/index.vue";
import Pagination from "@/components/Pagination/index.vue";
import { library } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'


Vue.config.productionTip = false
// 全局方法挂载
Vue.prototype.$axios = axios
Vue.prototype.download = download
Vue.prototype.parseTime = parseTime
// 全局组件挂载
Vue.component('ImagePreview', ImagePreview)
Vue.component('RightToolbar', RightToolbar)
Vue.component('Pagination', Pagination)
Vue.component('font-awesome-icon', FontAwesomeIcon)

library.add(fas)


Vue.use(ElementUI)

new Vue({
  store,
  router,
  vuex,
  render: h => h(App),
}).$mount('#app')
